import request from "../request";

const baseUrl = () => {
  return `/admin/config`
}

export const AdminConfigGet = (params) => {
  return request.get(baseUrl(), params)
}

export const AdminConfigPost = (data) => {
  return request.post(baseUrl(), data)
}

export const AdminWxaMenuGet = (params) => {
  return request.get('/admin/wxamenu', params)
}

export const AdminWxaMenuInfo = (id, params) => {
  return request.get(`/admin/wxamenu/${id}`, params)
}

export const AdminWxaMenuPost = (data) => {
  return request.post('/admin/wxamenu', data)
}

export const AdminWxaMenuPut = (id, data) => {
  return request.put('/admin/wxamenu/' + id, data)
}

export const AdminConfigFokaGet = () => {
  return request.get('/admin/foka')
}

export const AdminConfigFokaPut = (id, data) => {
  return request.put('/admin/foka/' + id, data);
}
